import { $t } from "@/plugins/i18n";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/user",
  name: "User",
  component: Layout,
  redirect: "/user/list",
  meta: {
    icon: "ep:user",
    title: "用户管理",
    rank: 5
  },
  children: [
    {
      path: "/user/list",
      name: "UserList",
      component: () => import("@/views/user/list/index.vue"),
      meta: {
        icon: "ep:list",
        title: "用户列表",
        showParent: true
      }
    },
    {
      path: "/user/role",
      name: "UserRole",
      component: () => import("@/views/user/role/index.vue"),
      meta: {
        icon: "ep:user-filled",
        title: "角色管理",
        showParent: true
      }
    },
    {
      path: "/user/detail/:id",
      name: "UserDetail",
      component: () => import("@/views/user/detail/index.vue"),
      meta: {
        title: "用户详情",
        showLink: false,
        activePath: "/user/list"
      }
    }
  ]
} satisfies RouteConfigsTable;
